//
//  SeeComplianContentTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/30.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "SeeComplianContentTableViewCell.h"

@implementation SeeComplianContentTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.separatorInset = UIEdgeInsetsMake(0, 0, 0, MAXFLOAT);
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.bgView];
    [self.bgView addSubview:self.contentLabel];
    [self.bgView addSubview:self.timeLabel];
}

-(void)send
{
    self.timeLabel.text = @"提交时间：2018-09-05 18 : 09 : 08";
}

-(UIView *)bgView
{
    if (_bgView == nil) {
        _bgView = [[UIView alloc] initWithFrame:CGRectMake(20, 5, WIDTH - 40, 50)];
        _bgView.backgroundColor = SFM242;
    }
    return _bgView;
}

-(UILabel *)contentLabel
{
    if (_contentLabel == nil) {
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 30, 100, 20)];
        _contentLabel.font = font(14);
        _contentLabel.textColor = SFM51;
        _contentLabel.textAlignment = NSTextAlignmentLeft;
        _contentLabel.text = @"投诉内容";
    }
    return _contentLabel;
}

-(UILabel *)timeLabel
{
    if (_timeLabel == nil) {
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(120, 30, WIDTH - 180, 20)];
        _timeLabel.font = font(12);
        _timeLabel.textColor = SFM153;
        _timeLabel.textAlignment = NSTextAlignmentRight;
    }
    return _timeLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
